﻿namespace H2.Streams.Sections
{
    using System;

    public class TagInfo
    {
        private int __iD__;
        private int __offset__;
        private int __rawMetaOffset__;
        private int __size__;

        public void ChangeOffset(int NewOffset, int Magic)
        {
            this.__offset__ = NewOffset;
            this.__rawMetaOffset__ = NewOffset + Magic;
        }

        public int ID
        {
            get
            {
                return this.__iD__;
            }
            set
            {
                this.__iD__ = value;
            }
        }

        public int Offset
        {
            get
            {
                return this.__offset__;
            }
        }

        internal int OffsetSet
        {
            set
            {
                this.__offset__ = value;
            }
        }

        public int RawMetaOffset
        {
            get
            {
                return this.__rawMetaOffset__;
            }
        }

        public int Size
        {
            get
            {
                return this.__size__;
            }
            set
            {
                this.__size__ = value;
            }
        }
    }
}

